salt-master:
  pkg.installed:
    - name: salt-master
  file.managed:
    - name: /etc/salt/master
    #- source:  salt://salt/files/etc/salt/master
    - require:
      - pkg: salt-master
  service.running:
    - enable: True
    - watch:
      - pkg: salt-master
      - file: salt-master
      - file: /etc/salt/master.d/

/etc/salt/master.d/:
  file.recurse:
    - source: salt://salt/files/etc/salt/master.d/
    - user: root
    - group: root
    - dir_mode: 755
    - file_mode: 644
